package com.physics.mps.entity.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author mcsoft
 * @since 2023-09-11
 */
@ToString
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_sub_task")
public class SubTaskEntity implements Serializable {

    private static final long serialVersionUID = 7698218843088795650L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("task_id")
    private String taskId;

    @TableField("name")
    private String name;

    @TableField("status")
    private Integer status;

    /**
     * @deprecated 用不上
     * @since 23-11-28
     */
    @Deprecated
    @TableField("file_path")
    private String filePath;

    /**
     * @deprecated 用不上
     * @since 23-11-28
     */
    @Deprecated
    @TableField("compute_param_id")
    private String computeParamId;

    @TableField("compute_result_id")
    private String computeResultId;

    @TableField("app_id")
    private String appId;

    @TableField("module_id")
    private String moduleId;

    @TableField("cmd_log")
    private String cmdLog;

    @TableField("log_path")
    private String logPath;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private String createTimeStr;

    @TableField(exist = false)
    private String updateTimeStr;

    @TableField(exist = false)
    private String appName;

    @TableField(exist = false)
    private String appModuleName;

    @TableField(exist = false)
    private TaskComputeResultEntity taskComputeResult;

}
